package com.ysd.lis.controller;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.DictionaryLocalListAddParam;
import com.ysd.lis.service.TDictionaryLocalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @description:
 * @author: JG
 * @time: 2021/11/29 9:52
 */

@Api(value = "本机参数设置")
@RestController
@RequestMapping("/api/sys")
public class TDictionaryLocalController extends BaseController {
    @Autowired
    TDictionaryLocalService tDictionaryLocalService;

    @ApiOperation("获取本机参数设置信息")
    @GetMapping("/findDictionaryLocalByKeyList")
    public Result findDictionaryLocalByKeyList(@RequestParam String macAddress){
        return tDictionaryLocalService.findDictionaryLocalByKeyList(macAddress);
    }

    @ApiOperation("提交本机参数设置信息")
    @PostMapping("/addDictionaryLocalList")
    public Result addDictionaryLocalList(@RequestBody List<DictionaryLocalListAddParam> params){
        return tDictionaryLocalService.addDictionaryLocalList(params);
    }
}
